package com.ch.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@TableName("`user`")
public class User {
    @TableId(value = "id",type = IdType.AUTO)
    private int id;
    private String userName;
    private String pwd;
    @TableField("`type`")
    private int type;

    public User(String userName, String pwd, int type) {
        this.userName = userName;
        this.pwd = pwd;
        this.type = type;
    }
    public User(String userName, String pwd) {
        this.userName = userName;
        this.pwd = pwd;
    }
}
